/* 会员系统页面样式 */

.membership-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

/* 页面头部 */
.membership-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.membership-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.membership-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* 标签切换 */
.membership-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.tab-button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: #333;
  background: rgba(102, 126, 234, 0.1);
}

.tab-button.active {
  background: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 包月套餐区域 */
.packages-section {
  margin-bottom: 40px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.package-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.package-card.popular {
  border-color: #667eea;
  transform: scale(1.05);
}

.package-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
}

.package-header {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.package-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.price-symbol {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: bold;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-left: 4px;
}

.package-duration {
  color: #666;
  font-size: 0.9rem;
}

.package-body {
  padding: 24px;
}

.package-description {
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  padding: 8px 0;
  color: #555;
  font-size: 0.9rem;
}

.package-footer {
  padding: 0 24px 24px;
}

.purchase-btn {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.purchase-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

/* 套餐说明 */
.packages-note {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.packages-note h4 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.packages-note ul {
  margin: 0;
  padding-left: 20px;
}

.packages-note li {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 充值优惠区域 */
.recharge-section {
  margin-bottom: 40px;
}

.recharge-intro {
  text-align: center;
  margin-bottom: 40px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
}

.recharge-intro h3 {
  color: #333;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.recharge-intro p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.recharge-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.recharge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.recharge-header {
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.recharge-amount {
  margin-bottom: 16px;
}

.amount-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.amount-value {
  font-size: 2rem;
  font-weight: bold;
}

.bonus-amount {
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.bonus-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.bonus-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 8px;
}

.bonus-type {
  font-size: 0.8rem;
  opacity: 0.9;
}

.recharge-body {
  padding: 24px;
  text-align: center;
}

.recharge-description {
  color: #666;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.recharge-total {
  color: #667eea;
  font-weight: bold;
  font-size: 1.1rem;
}

.recharge-footer {
  padding: 0 24px 24px;
}

.recharge-btn {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recharge-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* 充值说明 */
.recharge-note {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.recharge-note h4 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.recharge-note ul {
  margin: 0;
  padding-left: 20px;
}

.recharge-note li {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .membership-page {
    padding: 16px;
  }
  
  .membership-title {
    font-size: 2rem;
  }
  
  .packages-grid,
  .recharge-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card.popular {
    transform: none;
  }
  
  .package-card.popular:hover {
    transform: translateY(-4px);
  }
  
  .membership-tabs {
    max-width: 100%;
  }
}